import { CreateOpsWebApp } from '@/utils/fetch';

const request = CreateOpsWebApp();

// 获取用户管理列表
export const getUserMangeList = (params) => {
  return request.post('/userMange/getList', params);
};

// 添加用户
export const addUser = (params) => {
  return request.post('/userMange/add', params);
};

// 获取详情
export const getDetail = (params) => {
  return request.post('/userMange/detail', params);
};

// 修改用户
export const updateUser = (params) => {
  return request.post('/userMange/update', params);
};

// 删除用户
export const deleteUser = (params) => {
  return request.post('/userMange/delete', params);
};

// 重置密码
export const resetPassword = (params) => {
  return request.post('/userMange/resetPassword', params);
};
